package com.xiaobai.spike.service.auth;

import com.xiaobai.spike.entity.User;
import com.xiaobai.spike.model.response.TokenResponse;

public interface UserService {
    Integer add(User user);
    TokenResponse login(User user);
    Boolean checkUserLogin(User user);
    User getById(Long id);
    User getByName(String name);
    TokenResponse generateToken(String name, Integer tokenExpire, Integer refreshTokenExpire);
}
